<#macro layout title1 title2>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>K博客后台管理</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="stylesheet" type="text/css" href="${basepath!}/static/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="${basepath!}/static/css/admin.css">
    <link rel="stylesheet" href="${basepath!}/static/font-awesome/css/font-awesome.css">

    <script src="${basepath!}/static/jquery-1.7.2.min.js" type="text/javascript"></script>
	<script src="${basepath!}/static/bootstrap/js/bootstrap.js" type="text/javascript"></script>
	<script charset="utf-8" src="${basepath!}/static/js/admin.js" type="text/javascript"></script>
    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!--> 
  <body class=""> 
  <!--<![endif]-->
    
    <#include "/WEB-INF/pages/admin/common/header.html"/>    
    
    <div class="sidebar-nav">
        <a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i class="icon-book"></i>博客</a>
        <ul id="dashboard-menu" class="nav nav-list collapse in">
            <li><a href="${basepath!}/admin/blog/edit">发布文章</a></li>
            <li><a href="${basepath!}/admin/blog/list">博客管理</a></li>
            <li><a href="${basepath!}/admin/tag/list">标签管理</a></li>
             <li><a href="${basepath!}/admin/blogtype/list">类型管理</a></li>
        </ul>

        <a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i class="icon-wrench"></i>工具</a>
        <ul id="accounts-menu" class="nav nav-list collapse">
            <li ><a href="${basepath!}/admin/user/list">用户管理</a></li>
            <li ><a style="color:#ccc;" href="#">连接管理</a></li>
        </ul>

        <a href="javascript:void(0);" class="nav-header" ><i class="icon-question-sign"></i>关于</a>
        
    </div>
    

    
    <div class="content">
        
        <div class="header">
            <h1 class="page-title">${title2!}</h1>
        </div>
        <ul class="breadcrumb">
            <li><a href="${basepath!}/admin">首页</a> <span class="divider">/</span></li>
            <li><a href="#">${title1!}</a> <span class="divider">/</span></li>
            <li class="active">${title2!}</li>
        </ul>

        <div class="container-fluid">
           	<#nested>
            <#include "/WEB-INF/pages/admin/common/footer.html"/>      
        </div>
    </div>
    
    <!-- //消息提示框 -->
    <input value="${(result.status)!}" type="hidden" id="msg_status"/>
    <div id="msg_tip" class="modal hide fade ">
		  <div class="modal-header">
		    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		    <h3>消息提示!</h3>
		  </div>
		  <div class="modal-body">
		    <p id="msg_msg">${(result.msg)!}</p>
		  </div>
		  <div class="modal-footer ">
		    <a href="#" class="btn" data-dismiss="modal">关闭</a>
		  </div>
	</div><!-- //Model end -->

	<!-- //确认信息弹出框 -->
	<div class="modal small hide fade" id="comfirm_dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	    <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
	        <h3 id="myModalLabel">确认信息</h3>
	    </div>
	    <div class="modal-body">
	        <p class="error-text"><i class="icon-warning-sign modal-icon"></i><span id="comfirm_dialog_msg" style="color:red;">确定删除?</span></p>
	    </div>
	    <div class="modal-footer">
	        <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
	        <button id="comfirm_dialog_ok" class="btn btn-danger" data-dismiss="modal">确定</button>
	    </div>
	</div>
   
  
    
  </body>
</html>
</#macro>


